adTempus API
PreviousUpNext
IJob::Execute Method

Executes the job immediately 

This method is retained primarily for backward compatibility.

C++
HRESULT Execute(long options);
C#
Execute(long options);
Visual Basic
Sub Execute(options As long)
Parameters 
Description 
[in] long options 
Options that control execution. Use any combination of the ExecutionOptionsEnum values, which correspond to the options you see when you use the Execute command in the user interface. 

For more control over execution, use the ExecuteJob method instead.

You must have saExecute permission for the job, or the method will fail with error ADT_E_NO_PERMISSION. 

This method submits the job for execution, but does not provide any feedback regarding the status of the job. To determine whether the job was successfully executed you must check the job's status or execution history. 

To run the job starting with a step other than the first, or to pass a checkpoint value to the job, use ExecuteJob

If Distributed Scheduling is being used, use IJobAgentJoin.ExecuteJob to run the job on a specific agent.

adTempus API Reference version 3.0.0.0, revised 10/30/2008